package com.melodyframe.stage.core.performer;

import java.util.HashMap;
import java.util.Map;

public class Result {
	private String				action;
	private Map<Object, Object>	context;

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public void put(Object key, Object value) {
		if (null == this.context) {
			this.context = new HashMap<>();
		}
		this.context.put(key, value);
	}

	public Object get(Object key) {
		if (null == this.context) {
			return null;
		}
		return this.context.get(key);
	}

	public Map<Object, Object> getContext() {
		return context;
	}

	public void setContext(Map<Object, Object> context) {
		this.context = context;
	}
}
